<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/8/23 0023
  Time: 上午 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资质过期预警</title>
    <%@ include file="../../../header.jsp" %>
</head>
<body  class="body-main">
<div class="titleSearch" id="search">
    <d:hasUrlAuth authCode="ZZSC_ZS_SYB">
        <div class="layui-inline">
            <label>所属事业部：</label>
            <div class="layui-input-inline">
                <select class="select-style" name="signOrgId" id="signOrgId">
                    <option value="">请选择</option>
                </select>
            </div>
        </div>
    </d:hasUrlAuth>
    <div class="layui-inline">
        <label>资质类型：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateType" id="certificateType">
                <option value="">请选择</option>
                <c:forEach items="${typeList}" var="cerType">
                    <option value="${cerType.id}">${cerType.certificateName}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>资质名称：</label>
        <div class="layui-input-inline">
            <%-- <select class="select-style" name="certificateName" id="certificateName">
                 <option value="">全部</option>
             </select>--%>
            <select name="certificateName" class="select-style" id="certificateName" autocomplete="off">
                <option value="">请选择</option>
            </select>

        </div>
    </div>
    <div class="layui-inline">
        <label>资质等级：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateLevel" id="certificateLevel">
                <option value="">请选择</option>
                <c:forEach items="${certificateLevels}" var="level">
                    <option value="${level.code}">${level.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>超期状态：</label>
        <div class="layui-input-inline">
            <select class="select-style" id="overdueStatus">
                <option value="">全部</option>
                <c:forEach var="s" items="${overdueStatuss}">
                    <option value="${s.code}" <c:if test="${overdueStatus==s.code}">selected</c:if>>${s.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>适用范围：</label>
        <div class="layui-input-inline">
            <select class="select-style" id="applicationScope">
                <option value="">请选择</option>
                <c:forEach var="a" items="${applicationScopes}">
                    <option value="${a.code}">${a.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>关键字：</label>
        <div class="layui-input-inline">
            <input type="text" name="conditions" class="input-style win250" placeholder="所属企业/资质编号"/>
        </div>
    </div>
    <div class="layui-inline">
        <button class="layui-btn layui-btn-mini layui-btn-normal" onclick="searchTable()">搜索</button>
        <button class="layui-btn layui-btn-mini layui-btn-primary" onclick="cleanSearch()">清空</button>
    </div>
</div>

<d:hasUrlAuth authCode="ZZSC_ADMIN_EDIT">
    <input type="hidden" name="adminEdit" value="1">
</d:hasUrlAuth>

<d:hasUrlAuth authCode="ZZSC_ZS_PT_GLY">
    <div class="table-conter">
        &nbsp;&nbsp;预警天数：<span id="textExpireWarning">${expireWarning}</span>天 <a href="javascript:void(0)"
                                                                                  class="layui-btn layui-btn-mini"
                                                                                  onclick="earlyWarning()">预警时间设置</a>
    </div>
</d:hasUrlAuth>

<table id="staleTable" class="cell-border crm-table">
</table>
<!--预警时间设置 start-->
<div class="content-layer layui-layer-wrap" id="earlyWarningTime">
    <div class="text-center">
        资质过期提前 <input type="text" name="staleValue" value="${expireWarning}" class="input-style text-center win60"
                      onkeyup="staleValueDo(this.value);var v=this.value||'';v=v.replace(/[^\d+(,\d)]/g,'');this.value=v.substr(0,3);">
        天，预警提示
    </div>
</div>
<!--预警时间设置 end-->
<%@ include file="../../../footer.jsp" %>
<script src="${pageContext.request.contextPath}/static/js/zzsc/common/functionalTool.js"></script>
<script src="${pageContext.request.contextPath}/static/js/zzsc/common/verificationTool.js"></script>
<script src="${rootUrl}/static/js/zzsc/credential/credentailCommon/credentailCommon.js"></script>
<script src="${pageContext.request.contextPath}/static/js/zzsc/credential/warningConfigure/stale_index.js"></script>
</body>
</html>
